import { createStore } from "vuex"

export default createStore({
    state: {
        count: 0,
    },
    getters:{

    },
    mutations: {
        increment(state) {
            state.count++
        },
    },
    actions: {
        increment(context) {
            setTimeout(() => {
               context.commit('increment') 
            }, 2000);
        },
    },
    modules:{

    }

})
